<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<validations xmlns="http://www.erayt.com/solar3/connector/core/validate">
		<!--  -->
	<validation name="${objectName}EditForm">
		<#list cis as ci>
		<#if ci.jdbcTypeUp == 'DECIMAL'>
		<item name="${ci.property}">
		    <rule name="required" value="1" message="不能为空" code="not.null"></rule>
            <rule name="pattern" value="^[0-9]*$" message="${ci.comment}只能数字" code="number"></rule>
        </item>
		<#elseif ci.jdbcTypeUp == 'INTEGER'>
		<item name="${ci.property}">
		    <rule name="required" value="1" message="不能为空" code="not.null"></rule>
            <rule name="pattern" value="^[0-9]*$" message="${ci.comment}只能数字" code="number"></rule>
        </item>
		<#else>
		<item name="${ci.property}">
            <rule name="required" value="1" message="不能为空" code="not.null"></rule>
            <rule name="maxlength" value="10"  message="长度不能多于10" code="maxLength"></rule>
            <rule name="pattern" value="^[\u4E00-\u9FA5A-Za-z0-9_]+$"  message="不能输入非法字符" code="illegal.characters"></rule>
        </item>
		</#if>
		</#list>
	</validation>
</validations>


